PATHMac OS 8 and 9 Developer Documentation > Human Interface Toolbox > Menu Manager >

Mac OS 8.5 Menu Manager Reference


EnableMenuItemIcon

Enables the icon associated with a menu item.

pascal void EnableMenuItemIcon (
                     MenuHandle theMenu,
                     UInt16 item);
theMenu
A value of type MenuHandle . Pass a handle to the menu containing the icon to be enabled.
item
An unsigned 16-bit integer. Pass a value specifying the item number of the menu item containing the icon.

DISCUSSION

Your application can use the EnableMenuItemIcon function to enable individual menu item icons that have been previously disabled by a call to the function DisableMenuItemIcon . The menu item that contains the icon is unaffected by calling EnableMenuItemIcon . Note that enabling the icon of a currently disabled menu item has no visual effect; however, once the menu item is enabled, the icon is also enabled.


VERSION NOTES

Available with Mac OS 8.5 and later.


SEE ALSO

The function DisableMenuItemIcon .

The function IsMenuItemIconEnabled .


© 1999 Apple Computer, Inc. — (Last Updated 19 Jan 99)